package cn.xzzz2020.XJynWeb.mvc.render.impl;

import cn.xzzz2020.XJynWeb.mvc.RequestProcessorChain;
import cn.xzzz2020.XJynWeb.mvc.render.ResultRender;

/**
 * 默认渲染器，只会返回状态码
 * @author xzzz2020
 * @version 1.0
 * @date 2020/9/4 16:28
 */
public class DefaultResultRender implements ResultRender {
    @Override
    public void render(RequestProcessorChain requestProcessorChain) throws Exception {
        //将相应状态码设置到response中
        requestProcessorChain.getResponse().setStatus(requestProcessorChain.getResponseCode());
    }
}
